package com.hpf.tool.entity;
/**
 * 
 * @author hpf
 *
 */
public class SortEntity implements IEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8318385145240597116L;
	
	public SortEntity(){}
	
	public SortEntity(String column){
		this(column,null);
	}
	public SortEntity(String column,String type){
		this.column = column;
		if("".equals(type)){
			type = "DESC";
		}
		this.type = type;
	}
	/**
	 * 排序列
	 */
	private String column;
	/**
	 * 排序类型
	 */
	private String type;
	/**
	 * @return the column
	 */
	public String getColumn() {
		return column;
	}
	/**
	 * @param column the column to set
	 */
	public void setColumn(String column) {
		this.column = column;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
}
